package com.apop.accompany.auth.controller;


import com.apop.accompany.auth.entity.User;
import com.apop.accompany.auth.service.lUserService;
import com.apop.common.model.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author JiayiZheng
 * @since 2024-09-24
 */
@RestController
@RequestMapping("/v3pz/user")
public class UserController {

    @Resource
    lUserService iUserService;

    @GetMapping("/list")
    public Result list() {
        List<User> list = iUserService.getUserList();
        return Result.success(list);
    }
}
